<!--
 * @Descripttion: 
 * @Author: voanit
 * @Date: 2022-05-05 09:15:02
 * @LastEditors: voanit
 * @LastEditTime: 2022-05-06 11:08:02
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    // class Person {
    //   constructor(name, age) {
    //     this.name = name
    //     this.age = age
    //   }
    //   msg = 'hello'
    // }
    // let p = new Person('jack', 18)
    // p.__proto__.msg2 = 'hello world'
    // console.log(p)

    // // function Person (name, age) {
    // //   this.name = name
    // //   this.age = age
    // // }
    // // let p = new Person('jack', 18)
    // // Person.prototype.msg = 'hello  world'
    // // console.log(p)

    /*
 * @Descripttion:
 * @Author: voanit
 * @Date: 2022-05-05 09:11:40
 * @LastEditors: voanit
 * @LastEditTime: 2022-05-06 11:01:40
 */
    class Person {
      constructor(name, age) {
        this.name = name
        this.age = age
        // this.qq = 45
      }
      qq = '123'
      static say () {

      }
      static gender = '男'
      static goodBye () {
        console.log('byebye')
        return 1
      }
    }
    let p = new Person('jack', 18)
    console.log(Person.goodBye(), 77)
    console.log(p, 88)

// function Person(name, age) {
//   this.name = name
//   this.age = age
// }
// let p = new Person('jack', 18)
// console.log(p)


  </script>
</body>

</html>